import './assets/main.scss'
import App from './App.vue'
import { createApp } from 'vue'
import pinia from '@/stores/index'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from '@/router'


import locale from 'element-plus/dist/locale/zh-cn.js'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


const app = createApp(App);
// 全局注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }

app.use(pinia)
app.use(router)
app.use(ElementPlus,{locale});
app.mount('#app')
